<template>
  <div>
    <!-- <Button @click="handleClick">按钮</Button> -->

    <Radio :options="radioOptions" v-model="selectedOption" />
    <p>当前选中: {{ selectedOption }}</p>
  </div>
</template>

<script setup>
// import Button from './button.vue';
// const handleClick = () => {
//   console.log(111);
// }
import Radio from './radio.vue';
import { ref } from 'vue';

const radioOptions = ref([
  { value: 'option1', label: '选项 1' },
  { value: 'option2', label: '选项 2' },
  { value: 'option3', label: '选项 3' },
])

const selectedOption = ref('');
console.log(selectedOption.value);
</script>

<style></style>